#include <windows.h>
#include "Lock.h"


CLock::CLock()
{
	::InitializeCriticalSection(&m_cs);
}


CLock::~CLock()
{
	::DeleteCriticalSection(&m_cs);
}
void CLock::Lock()
{
	EnterCriticalSection(&m_cs);
}
void CLock::UnLock()
{
	LeaveCriticalSection(&m_cs);
}